Skip to content

Create directories with group-write permissions #4166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cbandy
Copy link
Member

@cbandy cbandy commented Apr 29, 2025

The group-write permission is important for persistent file systems in environments where different containers are assigned different UIDs over time. Some network file systems, however, reject attempts to set POSIX directory permissions.

This change adds those details and permission handling to the existing function.

Checklist:

  • Have you added an explanation of what your changes do and why you'd like them to be included?
  • Have you updated or added documentation for the change, as applicable?
  • Have you tested your changes on all related environments with successful results, as applicable?
    • Have you added automated tests?

Type of Changes:

  • Bug fix

What is the current behavior (link to any open issues here)?

Repository host pods enter a CrashLoopBackOff when creating pgBackRest directories on CIFS mounts.

What is the new behavior (if this is a feature change)?

Pod startup continues despite CIFS mounts reporting Operation not permitted when creating pgBackRest directories.

Other Information:

Issue: PGO-2417

The group-write permission is important for persistent file systems in
environments where different containers are assigned different UIDs
over time. Some network file systems, however, reject attempts to set
POSIX directory permissions. CIFS and NFS are notable in this regard.

Issue: PGO-2417
@cbandy cbandy requested a review from andrewlecuyer April 29, 2025 23:27
@cbandy cbandy linked an issue Apr 29, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CIFS Backup Repo not working since Update 5.8.0
1 participant